package com.showcai.service;

import com.github.pagehelper.PageInfo;
import com.showcai.module.GamePetWiki;
import com.showcai.myRunTime.MyRunTimeExcption;

import java.util.Map;

/**
 * Created by Baggio on 2018-11-5.
 */
public interface GamePetWikiService {
    /**
     * 更新宠物百科内容
     * @param gamePetWiki
     * @throws MyRunTimeExcption
     */
    void modifyGamePetWiki(GamePetWiki gamePetWiki) throws MyRunTimeExcption;

        /**
         * 获取宠物百科列表
         * @param map
         * @return
         * @throws MyRunTimeExcption
         */
    PageInfo getGamePetWikiList(Map<String, String> map) throws MyRunTimeExcption;

        /**
         * 通过Id获取一条宠物百科
         * @param id
         * @return
         * @throws MyRunTimeExcption
         */
    GamePetWiki getGamePetWikiById(Long id) throws MyRunTimeExcption;

        /**
         * 随机获取一条宠物百科
         * @return
         * @throws MyRunTimeExcption
         */
    GamePetWiki getGamePetWikiByRandom() throws MyRunTimeExcption;
}
